package com.xiao.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import com.netflix.loadbalancer.RoundRobinRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author xiaoxiaoping
 * @Date 2020/8/30 15:53
 * @Version 1.0
 */
@Configuration
public class MyselfRule {
	@Bean
	public IRule myRule(){
		return new RoundRobinRule();
	}
}
